{extend name="$goods_detail_base" /}
{block name="goods_promotion"}
<!--限时折扣-->
{if condition="$goods_detail.promotion_price < $goods_detail.member_price"}
{assign name="show_price" value="$goods_detail.promotion_price"}
{else/}
{assign name="show_price" value="$goods_detail.member_price"}
{/if}
<div class="product-discount">
	<div class="price-info ns-bg-color">
		<div class="actprice"><i class="yen">¥</i>{if condition="$goods_detail.promotion_price < $goods_detail.member_price"}{$goods_detail.promotion_price}{else/}{$goods_detail.member_price}{/if}</div>
		<div class="origprice">
			{if $show_price < $goods_detail['price']}
			<span class="oprice"><del>¥ {$goods_detail.price}</del></span>
			{/if}
			<span class="actual_sale">{$goods_detail['sales']}{if condition ="empty($goods_detail['goods_unit'])"}{:lang('goods_piece')}{else/}{$goods_detail['goods_unit']}{/if}已售</span>
		</div>
	</div>
	
	<div class="countdown">
		<div class="txt" data-value="{$goods_detail['promotion_detail']['discount_detail']['end_time']}">{:lang('distance_ends')}</div>
		<div class="clockrun">
			<span class="num" id="day">00</span><span class="dot ns-text-color-gray">:</span>
			<span class="num" id="hour">00</span><span class="dot ns-text-color-gray">:</span>
			<span class="num" id="min">00</span><span class="dot ns-text-color-gray">.</span>
			<span class="num" id="second">00</span>
		</div>
	</div>
</div>
{/block}
{block name="goods_price"}{/block}